package com.banksoft.cps.service;

import com.banksoft.cps.bean.CompanyUser;
import com.banksoft.cps.bean.TransportCompany;
import com.banksoft.cps.bean.common.ServiceException;
import com.banksoft.cps.bean.query.TransportCompanyQuery;
import com.banksoft.cps.bean.warpper.TransportCompanyWarpper;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/10.
 */
public interface TransportCompanyService  extends UserService{

    List<TransportCompany> list(TransportCompanyQuery query);

    List<TransportCompanyWarpper> listWarpper(TransportCompanyQuery query);

    long count(TransportCompanyQuery query);

    void save(TransportCompany bean);

    TransportCompany findById(String id);

    TransportCompanyWarpper findWarpperById(String id);

    TransportCompany login(String account, String password)throws ServiceException;

    void logout(String token);

    void deleteByIds(String[] ids);
}
